home *** CD-ROM | disk | FTP | other *** search
/ Geni@l B1 3 / Geni@l B1 3.iso / Mac_OSX / Install Flash Player 10 UB.dmg / Adobe Flash Player.pkg / Contents / Resources / postflight < prev    next >
Text File  |  2009-02-05  |  2KB  |  62 lines

  1. #!/bin/sh
  2.  
  3. #
  4. # Postflight installer script
  5. # Copyright 2008 Adobe Systems Incorporated. All Rights Reserved.
  6. #
  7.  
  8. # ----------------------------------------------------------------------
  9. # [1] Store off version.txt in user-pref directory for
  10. #     ping-mothership-on-first-launch/
  11. # ----------------------------------------------------------------------
  12. if [ ! -d ~/Library/Preferences/Macromedia/Flash\ Player/ ]; then
  13.     mkdir ~/Library/Preferences/Macromedia/Flash\ Player/
  14. fi
  15.  
  16. mv "/Library/Internet Plug-Ins/version.txt" ~/Library/Preferences/Macromedia/Flash\ Player/
  17.  
  18. # ----------------------------------------------------------------------
  19. # [2] "touch" the Plugin bundle so Firefox knows it has been updated
  20. #     (bug 233245)
  21. # ----------------------------------------------------------------------
  22. touch "/Library/Internet Plug-Ins/Flash Player.plugin"
  23.  
  24. # ----------------------------------------------------------------------
  25. # [3] Remove any residual Flash Player.plugin that may be installed
  26. #     in the current user's directory.
  27. # ----------------------------------------------------------------------
  28. osascript "$1/Contents/Resources/RemoveUserFPInstall.applescript"
  29.  
  30. # ----------------------------------------------------------------------
  31. # [4] If express install (as evidenced by the existence of the file
  32. #     "/tmp/FPExpressInstall.flag") then:
  33. #     [a] Delete the self-contained updater
  34. #     [b] Open the post-install webpage
  35. #     [c] Remove the flag file
  36. #     [d] Wait 1.5 seconds, then kill the Installer app
  37. #     (bugs 236465 & 236466)
  38. # ----------------------------------------------------------------------
  39. if [ -f /tmp/FPExpressInstall.flag ]
  40. then
  41.     rm "$HOME/Library/Preferences/Macromedia/Flash Player/www.macromedia.com/bin/fpupdatepl/fpupdatepl"
  42.     sudo -u $USER open "http://www.macromedia.com/software/flash/about/installerRedirect.html"
  43.     rm /tmp/FPExpressInstall.flag
  44.     sleep 3
  45.     killall Installer
  46. fi
  47.  
  48. # ----------------------------------------------------------------------
  49. # [5] Delete "Flash Player Enabler.plugin" if it exists
  50. #     (bug 237633)
  51. # ----------------------------------------------------------------------
  52. if [ -d "/Library/Internet Plug-Ins/Flash Player Enabler.plugin" ]
  53. then
  54.     rm -rf "/Library/Internet Plug-Ins/Flash Player Enabler.plugin"
  55. fi
  56.  
  57.  
  58. # Exit successfully
  59. exit 0
  60.  
  61. #end script
  62.